package com.west.xu.jdbc.utils;

import com.google.gson.GsonBuilder;

import java.lang.reflect.Type;

public class JsonParseUtil {

    public static String toJSONString(Object value) {
        return new GsonBuilder().create().toJson(value);
    }

    public static Object parseObject(String data, Type classz) {
        return new GsonBuilder().create().fromJson(data, classz);
    }
}
